package com.hisense.proxy.busitrans.vo;

import java.math.BigDecimal;

public class HxFdcprBusitransApplyInvoiceBodyDetailVO {

	private String chargeName;
	
	private String chargeNamePk;
	
	/**
	 * 货物或应税服务名称(fdcprcm_bd_charge) / 折扣对应税目(fdcpr_hx_deal)
	 */
	private String taxName;
	
	private String invoiceTypeNo;
	
	private String detailPk;
	
	private double taxRate;
	
	private double nallbrevmny;
	
	/**
	 * 已开票金额
	 */
	private double invoicedmny;
	
	private String houseVhcode;
	
	private String housePk;
	
	private String dchargemonth;
	
	private String billStartDate;
	
	private String billEndDate;
	
	
	/**
	 * (~)未开票/ 1-开票中/2-待开票/3-开票成功
	 */
	private String kpStatus;
	
	/**
	 * 已经开出来的票据信息
	 */
	private String kpJson;
	
	/**
	 * 明细行类型：advance: 预收；bill: 账单
	 */
	private String detailType;
	
	/**
	 * 来源单据号
	 */
	private String vsrccode;
	
	
	public String getChargeName() {
		return chargeName;
	}

	public void setChargeName(String chargeName) {
		this.chargeName = chargeName;
	}

	public String getChargeNamePk() {
		return chargeNamePk;
	}

	public void setChargeNamePk(String chargeNamePk) {
		this.chargeNamePk = chargeNamePk;
	}

	public double getTaxRate() {
		if (taxRate > 1) {
			taxRate = taxRate / 100;
		}
		BigDecimal b = new BigDecimal(taxRate);
		return b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
	}

	public void setTaxRate(double taxRate) {
		this.taxRate = taxRate;
	}

	public double getNallbrevmny() {
		BigDecimal b = new BigDecimal(nallbrevmny);
		return b.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
	}

	public void setNallbrevmny(double nallbrevmny) {
		this.nallbrevmny = nallbrevmny;
	}

	public String getHouseVhcode() {
		return houseVhcode;
	}

	public void setHouseVhcode(String houseVhcode) {
		this.houseVhcode = houseVhcode;
	}

	public String getDchargemonth() {
		return dchargemonth;
	}

	public void setDchargemonth(String dchargemonth) {
		this.dchargemonth = dchargemonth;
	}

	public String getHousePk() {
		return housePk;
	}

	public void setHousePk(String housePk) {
		this.housePk = housePk;
	}

	public String getBillEndDate() {
		return billEndDate;
	}

	public void setBillEndDate(String billEndDate) {
		this.billEndDate = billEndDate;
	}

	public String getBillStartDate() {
		return billStartDate;
	}

	public void setBillStartDate(String billStartDate) {
		this.billStartDate = billStartDate;
	}

	public String getDetailType() {
		return detailType;
	}

	public void setDetailType(String detailType) {
		this.detailType = detailType;
	}

	public String getDetailPk() {
		return detailPk;
	}

	public void setDetailPk(String detailPk) {
		this.detailPk = detailPk;
	}

	public String getTaxName() {
		return taxName;
	}

	public void setTaxName(String taxName) {
		this.taxName = taxName;
	}

	public String getKpStatus() {
		return kpStatus;
	}

	public void setKpStatus(String kpStatus) {
		this.kpStatus = kpStatus;
	}

	public String getKpJson() {
		return kpJson;
	}

	public void setKpJson(String kpJson) {
		this.kpJson = kpJson;
	}

	public double getInvoicedmny() {
		BigDecimal two = new BigDecimal(invoicedmny);
		return two.setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue();
	}

	public void setInvoicedmny(double invoicedmny) {
		this.invoicedmny = invoicedmny;
	}

	public String getVsrccode() {
		return vsrccode;
	}

	public void setVsrccode(String vsrccode) {
		this.vsrccode = vsrccode;
	}

	public String getInvoiceTypeNo() {
		return invoiceTypeNo;
	}

	public void setInvoiceTypeNo(String invoiceTypeNo) {
		this.invoiceTypeNo = invoiceTypeNo;
	}

}
